<!--   @author  Created By  YS  on 2023/10/22 -->
<!--   @describe -->

<template>
  <u-button  :text="text" :customStyle="customSty" @click="btnClick"></u-button>
</template>

<script>
import Enum from "@/utils/enums";
export default {
  name: 'cBtn',
  props:{
    text: {
      type: String,
      default: '登录'
    },
    customStyle:{
      type:Object,
      // default:''
    }
  },
  data() {
    return {}
  },
  computed:{
    customSty(){
        return Object.assign({},  Enum.customStyles,this.customStyle)
    }
  },
  methods:{
    btnClick(){
      this.$emit('click')
    }
  }
}
</script>


